#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
int main()
{
    char a0[5008];
    char b0[5008];
    int a[5008] = { 0 };
    int b[5008] = { 0 };
    int sum[5008] = { 0 };
    int i = 0;
    scanf("%s", a0);
    scanf("%s", b0);
    int v = 0;
    for (v = 5001; a0[v] != '\0'; v--);
    v--;
    for (int c = 0; v >= 0; c++, v--) {
        a[c] = a0[v] - '0';
    }
    for (v = 5002; b0[v] != '\0'; v--);
    v--;
    for (int c = 0; v >= 0; c++, v--) {
        b[c] = b0[v] - '0';
    }
    int la = strlen(a0);
    int lb = strlen(b0);
    int lc = la + lb;
    for (int q = 0; q < la; q++) {
        for (int p = 0; p < lb; p++) {
            sum[q + p] += a[q] * b[p];
            sum[q + p + 1] += sum[q + p] / 10;
            sum[q + p] %= 10;
        }
    }
    int j = 0;
    for (j = 5005; sum[j] == 0; j--);
    for (; j >= 0; j--)
        printf("%d", sum[j]);
    return 0;
}